package com.catmiw.funds.service;

import java.util.Date;
import java.util.List;

import com.catmiw.funds.domain.Fund;
import com.catmiw.funds.domain.Profit;
import com.catmiw.funds.domain.Split;
import com.catmiw.funds.domain.SplitOrProfit;
import com.catmiw.funds.domain.Value;

public interface FundService {
	public int insertAll(List<Fund> funds);
	public List<Fund> selectAll();
	public void updateDiary(String code);
	
	public Value select (String code,Date date);
	
	public Value getNewestValue(String code);
	
	public List<Value> selectAllValue(String code);
	public List<Value> selectValuePeriod(String code,Date fromdate,Date todate);
	public List<Split> selectAllSplit(String code);
	public List<Profit> selectAllProfit(String code);
	public List<SplitOrProfit> selectSplitOrProfit(String code);
	public List<SplitOrProfit> selectSplitOrProfitPeriod(String code,Date fromdate,Date todate);
	
	public Value selectNearest(String code ,Date date);
}
